package net.contrend.system.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import net.contrend.system.form.UserRoleForm;

public class UserRoleFormMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet rs, int index) throws SQLException {
        UserRoleForm ur = new UserRoleForm();
        ur.setUserId(rs.getString("userId"));
        ur.setRoleId(rs.getString("roleId"));
        return ur;
    }

}
